/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.designpatterns.creational.prototype.model;

/**
 *
 * @author user
 */
public class Person implements Prototype {

    String name;
    private String names;

    
    public Person(String name){
        this.names = name;
    }
    
    public String getNames() {
        return names;
    }

    public void setNames(String names) {
        this.names = names;
    }
    @Override
    public Prototype doClone() {
       return new Person(names) ;
    }
    
    public String toString(){
        return "This person is named "+ getNames();
    }
    
}
